/**
 * 
 */
package com.weightcontrol.persistence.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * @author yizhangy
 *
 */
@Entity
@Table(name = "w_user")
public class User extends BaseEntity{
	
	@Column(nullable = false, length = 100, unique = true)
	private String userName;
	
	@Column(nullable = false, length = 100)
	private String password;
	
	@OneToOne
	private Profile profile;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Profile getProfile() {
		return profile;
	}

	public void setProfile(Profile profile) {
		this.profile = profile;
	}
	
}
